<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2015/6/23
 * Time: 19:24
 */

namespace common\models\Service;


use common\models\CommonFunction;
use common\models\DAO\InvestType;

class InvestTypeService {
	//散标小类
    public static function getAllType()
	{
		return InvestType::find()->asArray()->all();
	}
	
	
	//私募小类
    public static function getAllTypeSi()
	{
		return InvestType::find()->where(['classID'=>1])->asArray()->all();
	}
	
	//公募小类
    public static function getAllTypeGong()
	{
		return InvestType::find()->where(['classID'=>2])->asArray()->all();
	}
}